/* 弹框遮罩层 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
  box-sizing: border-box;
  flex-direction: column;
  color: #fff;
}

.modal-buttom{
    width: 200px;
    height: 50px;
    background-image: url('../../assets/icon/dbxl.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    position: absolute;
    bottom: 25%;
    line-height: 45px;
    font-size: 25px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    cursor: pointer;
    border: none;
    outline: none;
}

.buttom-text{
    font-size: 20px;
    margin-top: 20px;
    cursor: pointer;
    color: #fff;
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 5px;
    padding: 3px 10px;
    transition: all 0.3s ease;
    letter-spacing: 2px;
    margin-top: 50px;
}

.text-line{
    background-color: #fff;
    height: 1px;
    width: 60%;
    
}

.buttom-area{
    width: 80%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 弹框内容容器 */
.modal-content {
  position: relative;
  border-radius: 12px;
  max-width: 80vw;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* 关闭按钮 */
.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  z-index: 1001;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.modal-close:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

/* 弹框图片自适应 */
.modal-image {
  width: 100%;
  height: auto;
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .modal-overlay {
    padding: 10px;
  }
  
  .modal-content {
    max-width: 95vw;
    max-height: 95vh;
    border-radius: 8px;
  }
  
  .modal-close {
    top: 8px;
    right: 12px;
    font-size: 20px;
    width: 28px;
    height: 28px;
  }
}

/* 小屏幕适配 */
@media (max-width: 480px) {
  .modal-overlay {
    padding: 5px;
  }
  
  .modal-content {
    max-width: 98vw;
    max-height: 98vh;
    border-radius: 6px;
  }
  
  .modal-close {
    top: 6px;
    right: 10px;
    font-size: 18px;
    width: 26px;
    height: 26px;
  }
}

/* 820px 屏幕适配 */
@media (min-width: 820px) {
  .modal-overlay {
    padding: 30px;
  }
  
  .modal-content {
    max-width: 80vw;
    max-height: 85vh;
    border-radius: 15px;
  }
  
  .modal-close {
    top: 15px;
    right: 20px;
    font-size: 28px;
    width: 35px;
    height: 35px;
  }
  
  .modal-buttom {
    width: 350px;
    height: 90px;
    bottom: 18%;
    line-height: 85px;
    font-size: 35px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
  }
  .buttom-text{
    font-size: 30px;
  }
  .text-line{
    width: 50%;
  }
  
  .modal-image {
    max-height: 75vh;
  }
}
